//package com.example.demo.controller;
//
//import com.example.demo.zookeeper.ZkApi;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//@Slf4j
//@RequestMapping("/api/zk/")
//@RestController
//public class ZkController {
//
//    @Autowired
//    private ZkApi zkApi;
//
//    @RequestMapping("create")
//    public void sendMsg(String msg) {
//        try {
//            boolean result = zkApi.createNode("/abc", "hello world");
//            log.info("create zookeeper node result is : " + result);
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//    }
//}
